package com.acknight.controller;


import com.acknight.dto.Result;
import com.acknight.entity.ShopType;
import com.acknight.service.IShopTypeService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/shop-type")
//@CrossOrigin
public class ShopTypeController {
    @Resource
    private IShopTypeService typeService;

    /**
     * 查询店铺类型
     * @return
     */
    @GetMapping("/list")
    public Result queryTypeList() {
        return typeService.queryTypes();
    }
}
